<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>


    <script src=" https://cdn.bootcss.com/vue/2.2.2/vue.min.js"></script>

    <!-- 引入样式 -->
    <link rel="stylesheet" href="https://unpkg.com/element-ui/lib/theme-chalk/index.css">
    <!-- 引入组件库 -->
    <script src="https://unpkg.com/element-ui/lib/index.js"></script>

    <style>
        html,
        body {
            height: 100%;
            margin: 0 auto;
            padding: 0;
            overflow: hidden;
            background-color: lightcyan;
        }

        #app {
            height: 100%;
        }

        .header {
            height: 62px;
        }

        .main {
            height: calc(100% - 62px);
            width:100%;
            background-color: lightsalmon;
        }

        .main_iframe {
            height: 100%;
            width:100%;
        }
    </style>

</head>

<body>

    <div id="app">

        <div class="header">
            <el-menu :default-active="activeIndex2" class="el-menu-demo" mode="horizontal" @select="handleSelect" background-color="#545c64"
                text-color="#fff" active-text-color="#ffd04b">
                <el-menu-item index="1">接口配置</el-menu-item>
                <el-menu-item index="2">栏目管理</el-menu-item>
                <el-menu-item index="3">文章列表</el-menu-item>
                <el-menu-item index="4">网页配置</el-menu-item>
                <el-menu-item index="5">图片管理</el-menu-item>
                <el-menu-item index="6">
                    <a href="https://www.ele.me" target="_blank">订单管理</a>
                </el-menu-item>
            </el-menu>
        </div>
        <div class="main">
            <iframe class="main_iframe" src="http://www.baidu.com" frameborder="0"></iframe>
        </div>



    </div>

    <script>
        window.vueApp = new Vue({
            el: '#app',
            data() {
                return {
                    activeIndex: '1',
                    activeIndex2: '1'
                };
            },
            methods: {
                handleSelect(key, keyPath) {
                    console.log(key, keyPath);
                }
            }
        });
    </script>

</body>

</html>